package com.aaa.lockscreen.appwidget;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

import com.aaa.lockscreen.deviceadmin.DeviceAdminManager;

/**
 * create by water.yuan
 * on 2020-11-25
 */
public class ClickReceiver extends BroadcastReceiver {
    private static final String TAG = ClickReceiver.class.getSimpleName();

    @Override
    public void onReceive(Context context, Intent intent) {
        Log.d(TAG, "onReceive: " + intent);
        Toast.makeText(context, "ClickReceiver", Toast.LENGTH_SHORT).show();
        DeviceAdminManager.lockScreen();
    }
}
